package pl.edu.agh.bd2.hibernate;

public class Address {
	private int address_id;
	private String street;
	private int homeNr;
	private String city;
	private String country;
	private String postalCode;	
	
	public Address(String street, int homeNr, String city, String postalCode,
			String country) {
		this.street = street;
		this.homeNr = homeNr;
		this.city = city;
		this.country = country;
		this.postalCode = postalCode;
		
	}
	public int getAddress_id() {
		return address_id;
	}
	public void setAddress_id(int address_id) {
		this.address_id = address_id;
	}
	public String getStreet() {
		return street;
	}
	public void setStreet(String street) {
		this.street = street;
	}
	public int getHomeNr() {
		return homeNr;
	}
	public void setHomeNr(int homeNr) {
		this.homeNr = homeNr;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
	}
	public String getPostalCode() {
		return postalCode;
	}
	public void setPostalCode(String postalCode) {
		this.postalCode = postalCode;
	}
	
	@Override
	public String toString() {
		return this.street + " " + homeNr + " " + postalCode + " " + city + " " +country;
	}
	
	
}
